package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.OrderStatistics;
import com.nbsaas.boot.order.api.domain.response.OrderStatisticsResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 订单统计-实体对象转化成响应对象
*/

public class OrderStatisticsResponseConvert  implements Converter<OrderStatisticsResponse,OrderStatistics> {

    @Override
    public OrderStatisticsResponse convert(OrderStatistics source) {
        OrderStatisticsResponse  result = new  OrderStatisticsResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

